package com.emn.fil.defifil.business;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Component;

@Component
public class Generateur {
	
	public List<Integer> generer(int nb, int min, int max) {
		
		List<Integer> randomList = new ArrayList<Integer>();
		
		while(nb > 0) {
			
			randomList.add((int)(Math.random()*(max-min) + min));
			
			nb--;
		}
		
		return randomList;
	}
	
	
}
